package com.report.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.report.bean.School;
import com.report.dao.SchoolDAO;

@Service
public class SchoolServiceImpl implements SchoolService {

	@Autowired
	private SchoolDAO schoolDAO;
	
	@Transactional
	public School findById(Integer id) {
		// TODO Auto-generated method stub
		return schoolDAO.findById(id);
	}

	@Transactional
	public List<School> listSchool() {
		// TODO Auto-generated method stub
		return schoolDAO.listSchool();
	}

}
